package com.buba.other.service.impl;

import com.buba.pojo.other.DivisionType;
import com.buba.other.mapper.DivisionTypeMapper;
import com.buba.other.service.DivisionTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.buba.pojoVo.DivisionTypeVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 科室类型表 服务实现类
 * </p>
 *
 * @author testjava
 * @since 2022-06-09
 */
@Service
public class DivisionTypeServiceImpl extends ServiceImpl<DivisionTypeMapper, DivisionType> implements DivisionTypeService {
    @Autowired
    private DivisionTypeMapper divisionTypeMapper;

    public DivisionTypeServiceImpl() {
    }

    public List<DivisionTypeVo> getDepartments1(Integer hospitalId) {
        return this.divisionTypeMapper.getDepartments1(hospitalId);
    }

    public List<DivisionType> selectDepartment(Integer id) {
        return this.divisionTypeMapper.selectDepartment(id);
    }

    @Override
    public DivisionType getDepartment(Integer departmentId1) {
        return divisionTypeMapper.getDepartment(departmentId1);
    }
}
